<?php
$config->upgrade = new stdclass();
$config->upgrade->maxVersion = array();
$config->upgrade->maxVersion['max2_0_rc1']   = '15_0_rc3';
$config->upgrade->maxVersion['max2_0']       = '15_0';
$config->upgrade->maxVersion['max2_1']       = '15_3';
$config->upgrade->maxVersion['max2_2']       = '15_5';
$config->upgrade->maxVersion['max2_3']       = '15_7';
$config->upgrade->maxVersion['max2_3_1']     = '15_7_1';
$config->upgrade->maxVersion['max2_4_beta1'] = '16_0_beta1';
$config->upgrade->maxVersion['max2_4']       = '16_0';
$config->upgrade->maxVersion['max2_5']       = '16_1';
$config->upgrade->maxVersion['max2_6']       = '16_2';
$config->upgrade->maxVersion['max2_7']       = '16_3';
$config->upgrade->maxVersion['max2_8']       = '16_4';
$config->upgrade->maxVersion['max3_0_beta1'] = '16_5_beta1';
$config->upgrade->maxVersion['max3_0']       = '16_5';
$config->upgrade->maxVersion['max3_1_beta1'] = '17_0_beta1';
$config->upgrade->maxVersion['max3_1_beta2'] = '17_0_beta2';
$config->upgrade->maxVersion['max3_1']       = '17_0';
$config->upgrade->maxVersion['max3_2']       = '17_1';
$config->upgrade->maxVersion['max3_3']       = '17_2';
$config->upgrade->maxVersion['max3_4']       = '17_3';
$config->upgrade->maxVersion['max3_5']       = '17_4';
$config->upgrade->maxVersion['max3_6']       = '17_5';

$config->upgrade->bizVersion = array();
$config->upgrade->bizVersion['biz1_0']       = '9_5_1';
$config->upgrade->bizVersion['biz1_1']       = '9_6_3';
$config->upgrade->bizVersion['biz1_1_1']     = '9_8';
$config->upgrade->bizVersion['biz1_1_2']     = '9_8_1';
$config->upgrade->bizVersion['biz1_1_3']     = '9_8_2';
$config->upgrade->bizVersion['biz1_1_4']     = '9_8_3';
$config->upgrade->bizVersion['biz2_0_beta']  = '10_0';
$config->upgrade->bizVersion['biz2_1']       = '10_3';
$config->upgrade->bizVersion['biz2_2']       = '10_4';
$config->upgrade->bizVersion['biz2_3']       = '10_5';
$config->upgrade->bizVersion['biz2_3_1']     = '10_6';
$config->upgrade->bizVersion['biz2_4']       = '10_6';
$config->upgrade->bizVersion['biz3_0']       = '11_1';
$config->upgrade->bizVersion['biz3_1']       = '11_2';
$config->upgrade->bizVersion['biz3_2']       = '11_3';
$config->upgrade->bizVersion['biz3_2_1']     = '11_4_1';
$config->upgrade->bizVersion['biz3_3']       = '11_5';
$config->upgrade->bizVersion['biz3_4']       = '11_6';
$config->upgrade->bizVersion['biz3_5_alpha'] = '11_6';
$config->upgrade->bizVersion['biz3_5_beta']  = '11_6_1';
$config->upgrade->bizVersion['biz3_5']       = '11_6_5';
$config->upgrade->bizVersion['biz3_5_1']     = '11_7';
$config->upgrade->bizVersion['biz3_6']       = '12_0';
$config->upgrade->bizVersion['biz3_6_1']     = '12_0_1';
$config->upgrade->bizVersion['biz3_7']       = '12_2';
$config->upgrade->bizVersion['biz3_7_1']     = '12_3_2';
$config->upgrade->bizVersion['biz3_7_2']     = '12_3_3';
$config->upgrade->bizVersion['biz4_0']       = '12_4';
$config->upgrade->bizVersion['biz4_0_1']     = '12_4_1';
$config->upgrade->bizVersion['biz4_0_2']     = '12_4_2';
$config->upgrade->bizVersion['biz4_0_3']     = '12_4_3';
$config->upgrade->bizVersion['biz4_0_4']     = '12_4_4';
$config->upgrade->bizVersion['biz4_1']       = '12_5';
$config->upgrade->bizVersion['biz4_1_1']     = '12_5_1';
$config->upgrade->bizVersion['biz4_1_2']     = '12_5_2';
$config->upgrade->bizVersion['biz4_1_3']     = '12_5_3';
$config->upgrade->bizVersion['biz5_0_rc1']   = '15_0_rc3';
$config->upgrade->bizVersion['biz5_0']       = '15_0';
$config->upgrade->bizVersion['biz5_0_1']     = '15_0_3';
$config->upgrade->bizVersion['biz5_1']       = '15_3';
$config->upgrade->bizVersion['biz5_2']       = '15_5';
$config->upgrade->bizVersion['biz5_3']       = '15_7';
$config->upgrade->bizVersion['biz5_3_1']     = '15_7_1';
$config->upgrade->bizVersion['biz6_0_beta1'] = '16_0_beta1';
$config->upgrade->bizVersion['biz6_0']       = '16_0';
$config->upgrade->bizVersion['biz6_1']       = '16_1';
$config->upgrade->bizVersion['biz6_2']       = '16_2';
$config->upgrade->bizVersion['biz6_3']       = '16_3';
$config->upgrade->bizVersion['biz6_4']       = '16_4';
$config->upgrade->bizVersion['biz6_5_beta1'] = '16_5_beta1';
$config->upgrade->bizVersion['biz6_5']       = '16_5';
$config->upgrade->bizVersion['biz7_0_beta1'] = '17_0_beta1';
$config->upgrade->bizVersion['biz7_0_beta2'] = '17_0_beta2';
$config->upgrade->bizVersion['biz7_0']       = '17_0';
$config->upgrade->bizVersion['biz7_1']       = '17_1';
$config->upgrade->bizVersion['biz7_2']       = '17_2';
$config->upgrade->bizVersion['biz7_3']       = '17_3';
$config->upgrade->bizVersion['biz7_4']       = '17_4';
$config->upgrade->bizVersion['biz7_5']       = '17_5';

$config->upgrade->proVersion = array();
$config->upgrade->proVersion['pro1_0']        = '3_1';
$config->upgrade->proVersion['pro1_1']        = '3_2';
$config->upgrade->proVersion['pro1_1_1']      = '3_2_1';
$config->upgrade->proVersion['pro1_2']        = '3_3';
$config->upgrade->proVersion['pro1_3']        = '3_3';
$config->upgrade->proVersion['pro2_0']        = '4_0';
$config->upgrade->proVersion['pro2_0_1']      = '4_0_1';
$config->upgrade->proVersion['pro2_1']        = '4_1';
$config->upgrade->proVersion['pro2_2_beta']   = '4_2_beta';
$config->upgrade->proVersion['pro2_3_beta']   = '4_3_beta';
$config->upgrade->proVersion['pro3_0_beta1']  = '5_0_beta1';
$config->upgrade->proVersion['pro3_0_beta1']  = '5_0_beta2';
$config->upgrade->proVersion['pro3_0']        = '5_0';
$config->upgrade->proVersion['pro3_1']        = '5_1';
$config->upgrade->proVersion['pro3_2']        = '5_2';
$config->upgrade->proVersion['pro3_2_1']      = '5_2_1';
$config->upgrade->proVersion['pro3_3']        = '5_3';
$config->upgrade->proVersion['pro4_0_beta1']  = '6_0';
$config->upgrade->proVersion['pro4_0']        = '6_1';
$config->upgrade->proVersion['pro4_1_beta']   = '6_2';
$config->upgrade->proVersion['pro4_2']        = '6_3';
$config->upgrade->proVersion['pro4_3']        = '6_3';
$config->upgrade->proVersion['pro4_4']        = '7_0';
$config->upgrade->proVersion['pro4_5']        = '7_1';
$config->upgrade->proVersion['pro4_6']        = '7_2_4';
$config->upgrade->proVersion['pro4_7']        = '7_2_5';
$config->upgrade->proVersion['pro4_7_1']      = '7_3';
$config->upgrade->proVersion['pro5_0']        = '8_0';
$config->upgrade->proVersion['pro5_0_1']      = '8_0_1';
$config->upgrade->proVersion['pro5_1']        = '8_1';
$config->upgrade->proVersion['pro5_1_3']      = '8_1_3';
$config->upgrade->proVersion['pro5_2']        = '8_2';
$config->upgrade->proVersion['pro5_2_1']      = '8_2_1';
$config->upgrade->proVersion['pro5_3']        = '8_2_3';
$config->upgrade->proVersion['pro5_3_1']      = '8_2_4';
$config->upgrade->proVersion['pro5_3_2']      = '8_2_5';
$config->upgrade->proVersion['pro5_3_3']      = '8_2_6';
$config->upgrade->proVersion['pro5_4']        = '8_3';
$config->upgrade->proVersion['pro5_4_1']      = '8_3_1';
$config->upgrade->proVersion['pro5_5']        = '8_4';
$config->upgrade->proVersion['pro5_5_1']      = '8_4_1';
$config->upgrade->proVersion['pro6_0_beta']   = '9_0_beta';
$config->upgrade->proVersion['pro6_0']        = '9_0';
$config->upgrade->proVersion['pro6_0_1']      = '9_0_1';
$config->upgrade->proVersion['pro6_1']        = '9_1';
$config->upgrade->proVersion['pro6_2']        = '9_1_2';
$config->upgrade->proVersion['pro6_3']        = '9_2';
$config->upgrade->proVersion['pro6_3_1']      = '9_2_1';
$config->upgrade->proVersion['pro6_4']        = '9_4';
$config->upgrade->proVersion['pro6_5']        = '9_5';
$config->upgrade->proVersion['pro6_5_1']      = '9_5_1';
$config->upgrade->proVersion['pro6_6']        = '9_6_3';
$config->upgrade->proVersion['pro6_6_1']      = '9_7';
$config->upgrade->proVersion['pro6_7']        = '9_8';
$config->upgrade->proVersion['pro6_7_1']      = '9_8_1';
$config->upgrade->proVersion['pro6_7_2']      = '9_8_2';
$config->upgrade->proVersion['pro6_7_3']      = '9_8_3';
$config->upgrade->proVersion['pro7_0_beta']   = '10_0';
$config->upgrade->proVersion['pro7_1']        = '10_1';
$config->upgrade->proVersion['pro7_2']        = '10_3';
$config->upgrade->proVersion['pro7_3']        = '10_4';
$config->upgrade->proVersion['pro7_4']        = '10_5';
$config->upgrade->proVersion['pro7_5']        = '10_5_1';
$config->upgrade->proVersion['pro7_5_1']      = '10_6';
$config->upgrade->proVersion['pro8_0']        = '11_1';
$config->upgrade->proVersion['pro8_1']        = '11_2';
$config->upgrade->proVersion['pro8_2']        = '11_3';
$config->upgrade->proVersion['pro8_3']        = '11_4_1';
$config->upgrade->proVersion['pro8_3_1']      = '11_4_1';
$config->upgrade->proVersion['pro8_4']        = '11_5';
$config->upgrade->proVersion['pro8_5']        = '11_6';
$config->upgrade->proVersion['pro8_5_1']      = '11_6_1';
$config->upgrade->proVersion['pro8_5_2']      = '11_6_3';
$config->upgrade->proVersion['pro8_5_3']      = '11_6_5';
$config->upgrade->proVersion['pro8_6']        = '11_7';
$config->upgrade->proVersion['pro8_7']        = '12_0';
$config->upgrade->proVersion['pro8_7_1']      = '12_0_1';
$config->upgrade->proVersion['pro8_8']        = '12_2';
$config->upgrade->proVersion['pro8_8_1']      = '12_3_1';
$config->upgrade->proVersion['pro8_8_2']      = '12_3_2';
$config->upgrade->proVersion['pro8_8_3']      = '12_3_3';
$config->upgrade->proVersion['pro8_9']        = '12_4';
$config->upgrade->proVersion['pro8_9_1']      = '12_4_1';
$config->upgrade->proVersion['pro8_9_2']      = '12_4_2';
$config->upgrade->proVersion['pro8_9_3']      = '12_4_3';
$config->upgrade->proVersion['pro8_9_4']      = '12_4_4';
$config->upgrade->proVersion['pro9_0']        = '12_5';
$config->upgrade->proVersion['pro9_0_1']      = '12_5_1';
$config->upgrade->proVersion['pro9_0_2']      = '12_5_2';
$config->upgrade->proVersion['pro9_0_3']      = '12_5_3';
$config->upgrade->proVersion['pro10_0_rc1']   = '15_0_rc3';
$config->upgrade->proVersion['pro10_0']       = '15_0';
$config->upgrade->proVersion['pro10_0_1']     = '15_0_2';
$config->upgrade->proVersion['pro10_0_2']     = '15_0_3';
$config->upgrade->proVersion['pro10_1']       = '15_3';
$config->upgrade->proVersion['pro10_2']       = '15_5';
$config->upgrade->proVersion['pro10_3']       = '15_7';
$config->upgrade->proVersion['pro10_3_1']     = '15_7_1';
$config->upgrade->proVersion['pro11_0_beta1'] = '16_0_beta1';
$config->upgrade->proVersion['pro11_0']       = '16_0';

$config->upgrade->liteVersion = array();
$config->upgrade->liteVersion['lite1_0'] = '16_5_beta1';
$config->upgrade->liteVersion['lite1_1'] = '16_5';
$config->upgrade->liteVersion['lite1_2'] = '17_1';

$config->upgrade->liteVersion['liteVIP1_1'] = 'biz6_5';
$config->upgrade->liteVersion['liteVIP1_2'] = 'biz7_1';

$config->upgrade->lowerTables = array();
$config->upgrade->lowerTables[$config->db->prefix . 'caseStep']       = $config->db->prefix . 'casestep';
$config->upgrade->lowerTables[$config->db->prefix . 'docLib']         = $config->db->prefix . 'doclib';
$config->upgrade->lowerTables[$config->db->prefix . 'groupPriv']      = $config->db->prefix . 'grouppriv';
$config->upgrade->lowerTables[$config->db->prefix . 'productPlan']    = $config->db->prefix . 'productplan';
$config->upgrade->lowerTables[$config->db->prefix . 'projectProduct'] = $config->db->prefix . 'projectproduct';
$config->upgrade->lowerTables[$config->db->prefix . 'projectStory']   = $config->db->prefix . 'projectstory';
$config->upgrade->lowerTables[$config->db->prefix . 'storySpec']      = $config->db->prefix . 'storyspec';
$config->upgrade->lowerTables[$config->db->prefix . 'taskEstimate']   = $config->db->prefix . 'taskestimate';
$config->upgrade->lowerTables[$config->db->prefix . 'testResult']     = $config->db->prefix . 'testresult';
$config->upgrade->lowerTables[$config->db->prefix . 'testRun']        = $config->db->prefix . 'testrun';
$config->upgrade->lowerTables[$config->db->prefix . 'testTask']       = $config->db->prefix . 'testtask';
$config->upgrade->lowerTables[$config->db->prefix . 'userContact']    = $config->db->prefix . 'usercontact';
$config->upgrade->lowerTables[$config->db->prefix . 'userGroup']      = $config->db->prefix . 'usergroup';
$config->upgrade->lowerTables[$config->db->prefix . 'userQuery']      = $config->db->prefix . 'userquery';
$config->upgrade->lowerTables[$config->db->prefix . 'userTPL']        = $config->db->prefix . 'usertpl';

$config->upgrade->bearychat = array();
$config->upgrade->bearychat['zh-cn'] = '倍洽';
$config->upgrade->bearychat['zh-tw'] = '倍洽';
$config->upgrade->bearychat['en']    = 'Bearychat';
$config->upgrade->bearychat['de']    = 'Bearychat';

$config->upgrade->discardedBugTypes['de']['interface']    = 'UI Optimierung';
$config->upgrade->discardedBugTypes['de']['newfeature']   = 'Neues Feature';
$config->upgrade->discardedBugTypes['de']['designchange'] = 'Design Änderung';
$config->upgrade->discardedBugTypes['de']['trackthings']  = 'Arbeit Verfolgen';

$config->upgrade->discardedBugTypes['en']['interface']    = 'Interface';
$config->upgrade->discardedBugTypes['en']['designchange'] = 'DesignChange';
$config->upgrade->discardedBugTypes['en']['newfeature']   = 'NewFeature';
$config->upgrade->discardedBugTypes['en']['trackthings']  = 'Tracking';

$config->upgrade->discardedBugTypes['fr']['interface']    = 'Interface';
$config->upgrade->discardedBugTypes['fr']['designchange'] = 'Design Change';
$config->upgrade->discardedBugTypes['fr']['newfeature']   = 'Nouvelle fonctionnalité';
$config->upgrade->discardedBugTypes['fr']['trackthings']  = 'Tracking';

$config->upgrade->discardedBugTypes['zh-cn']['interface']    = '界面优化';
$config->upgrade->discardedBugTypes['zh-cn']['designchange'] = '设计变更';
$config->upgrade->discardedBugTypes['zh-cn']['newfeature']   = "新增需求";
$config->upgrade->discardedBugTypes['zh-cn']['trackthings']  = '事务跟踪';

$config->upgrade->discardedBugTypes['zh-tw']['interface']    = '界面優化';
$config->upgrade->discardedBugTypes['zh-tw']['designchange'] = '設計變更';
$config->upgrade->discardedBugTypes['zh-tw']['newfeature']   = "新增需求";
$config->upgrade->discardedBugTypes['zh-tw']['trackthings']  = '事務跟蹤';

$config->delete['10.6'][]   = 'module/chat/ext/control/extensions.php';
$config->delete['12.4.2'][] = 'www/js/ueditor';

$config->delete['16_5_beta1'][] = 'module/my/ext/model/hook/setMenu.effort.php';
$config->delete['16_5_beta1'][] = 'module/my/ext/lang/de/bizext.php';
$config->delete['16_5_beta1'][] = 'module/my/ext/lang/vi/bizext.php';
$config->delete['16_5_beta1'][] = 'module/my/ext/lang/fr/bizext.php';
$config->delete['16_5_beta1'][] = 'module/common/ext/model/search.php';
$config->delete['16_5_beta1'][] = 'module/common/ext/lang/de/search.php';
$config->delete['16_5_beta1'][] = 'module/common/ext/lang/vi/search.php';
$config->delete['16_5_beta1'][] = 'module/common/ext/lang/fr/search.php';
$config->delete['16_5_beta1'][] = 'module/common/ext/view/footer.search.html.hook.php';
$config->delete['16_5_beta1'][] = 'module/common/ext/view/header.search.html.hook.php';
$config->delete['16_5_beta1'][] = 'module/story/ext/model/bizext.php';
$config->delete['16_5_beta1'][] = 'module/misc/ext/config/config2.php';
$config->delete['16_5_beta1'][] = 'module/misc/ext/config/config1.php';
$config->delete['16_5_beta1'][] = 'module/misc/ext/model/hook/hello2.start.php';
$config->delete['16_5_beta1'][] = 'module/misc/ext/model/hook/hello.test.php';
$config->delete['16_5_beta1'][] = 'module/misc/ext/model/hook/hello.test2.php';
$config->delete['16_5_beta1'][] = 'module/misc/ext/model/foo.php';
$config->delete['16_5_beta1'][] = 'module/misc/ext/model/class/test.class.php';
$config->delete['16_5_beta1'][] = 'module/misc/ext/model/ext.php';
$config->delete['16_5_beta1'][] = 'module/misc/ext/lang/zh-cn2.php';
$config->delete['16_5_beta1'][] = 'module/misc/ext/lang/zh-cn1.php';
$config->delete['16_5_beta1'][] = 'module/misc/ext/view/getsid.html.php';
$config->delete['16_5_beta1'][] = 'module/misc/ext/view/getsid.color.html.hook.php';
$config->delete['16_5_beta1'][] = 'module/todo/ext/model/hook/getTodos4Side.zentaobiz.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/config/gantt.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/model/flow.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/model/gantt.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/model/calendar.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/en/gantt.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/en/calendar.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/de/flow.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/de/gantt.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/de/calendar.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/vi/flow.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/vi/gantt.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/vi/calendar.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/zh-tw/flow.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/zh-tw/calendar.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/zh-cn/calendar.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/fr/flow.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/fr/gantt.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/lang/fr/calendar.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/effort.calendar.html.hook.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/effort.html.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/taskeffort.html.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/ajaxkanbansetting.flow.html.hook.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/featurebar.calendar.html.hook.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/featurebar.html.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/task.excel.html.hook.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/gantt.html.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/maintainrelation.html.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/effortcalendar.html.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/featurebar.gantt.html.hook.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/calendar.html.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/view/relation.html.php';
$config->delete['16_5_beta1'][] = 'module/product/ext/model/web.php';
$config->delete['16_5_beta1'][] = 'module/product/ext/lang/en/bizext.php';
$config->delete['16_5_beta1'][] = 'module/product/ext/lang/de/bizext.php';
$config->delete['16_5_beta1'][] = 'module/product/ext/lang/vi/bizext.php';
$config->delete['16_5_beta1'][] = 'module/product/ext/lang/zh-tw/bizext.php';
$config->delete['16_5_beta1'][] = 'module/product/ext/lang/zh-cn/bizext.php';
$config->delete['16_5_beta1'][] = 'module/product/ext/lang/fr/bizext.php';
$config->delete['16_5_beta1'][] = 'module/project/ext/css/relation/gantt.css';
$config->delete['16_5_beta1'][] = 'module/project/ext/css/ajaxkanbansetting/flow.css';
$config->delete['16_5_beta1'][] = 'module/project/ext/css/taskeffort/taskeffort.css';
$config->delete['16_5_beta1'][] = 'module/project/ext/css/calendar/calendar.css';
$config->delete['16_5_beta1'][] = 'module/project/ext/css/effort/effort.css';
$config->delete['16_5_beta1'][] = 'module/project/ext/css/task/execl.css';
$config->delete['16_5_beta1'][] = 'module/project/ext/js/taskeffort/taskeffort.js';
$config->delete['16_5_beta1'][] = 'module/project/ext/js/effort/effort.js';

$config->delete['17_0_beta1'][] = 'extension/biz/flow/ext/control/export.php';
$config->delete['17_0_beta1'][] = 'extension/biz/flow/ext/control/exporttemplate.php';
$config->delete['17_0_beta1'][] = 'extension/biz/flow/ext/view/autoimport.html.php';
$config->delete['17_0_beta1'][] = 'extension/biz/flow/ext/view/browse.html.php';
$config->delete['17_0_beta1'][] = 'extension/biz/workflow/ext/control/flowchart.php';
$config->delete['17_0_beta1'][] = 'extension/biz/workflowcondition/ext/view/browse.html.php';
$config->delete['17_0_beta1'][] = 'extension/biz/workflowhook/ext/view/browse.html.php';
$config->delete['17_0_beta1'][] = 'extension/biz/group/ext/lang/zh-cn/aflow.php';
$config->delete['17_0_beta1'][] = 'extension/biz/group/ext/lang/zh-cn/zflow.php';
$config->delete['17_0_beta1'][] = 'extension/biz/group/ext/model/flow.php';
$config->delete['17_0_beta1'][] = 'extension/biz/user/ext/model/bizext.php';
$config->delete['17_0_beta1'][] = 'extension/biz/sso/ext/model/bizext.php';
$config->delete['17_0_beta1'][] = 'extension/max/flow/ext/control/export.php';
$config->delete['17_0_beta1'][] = 'extension/max/flow/ext/control/exporttemplate.php';
$config->delete['17_0_beta1'][] = 'extension/max/flow/ext/view/autoimport.html.php';
$config->delete['17_0_beta1'][] = 'extension/max/flow/ext/view/browse.html.php';
$config->delete['17_0_beta1'][] = 'extension/max/workflow/ext/control/flowchart.php';
$config->delete['17_0_beta1'][] = 'extension/max/workflowcondition/ext/view/browse.html.php';
$config->delete['17_0_beta1'][] = 'extension/max/workflowhook/ext/view/browse.html.php';
$config->delete['17_0_beta1'][] = 'extension/max/group/ext/lang/zh-cn/aflow.php';
$config->delete['17_0_beta1'][] = 'extension/max/group/ext/lang/zh-cn/zflow.php';
$config->delete['17_0_beta1'][] = 'extension/max/group/ext/model/flow.php';
$config->delete['17_0_beta1'][] = 'extension/max/user/ext/model/bizext.php';
$config->delete['17_0_beta1'][] = 'extension/max/sso/ext/model/bizext.php';

$config->delete['17_2'][] = 'extension/biz/my/ext/view/todo.calendar.html.hook.php';
$config->delete['17_2'][] = 'extension/max/my/ext/view/todo.calendar.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/attend/ext/view/stat.oa.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/flow/ext/view/browse.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/flow/ext/view/create.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflow/ext/view/browsedb.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflow/ext/view/browseflow.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflow/ext/view/edit.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflow/ext/view/flowchart.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflow/ext/view/release.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflow/ext/view/setcss.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflow/ext/view/setjs.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflow/ext/view/ui.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflowaction/ext/view/browse.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflowaction/ext/view/edit.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflowaction/ext/view/setnotice.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflowdatasource/ext/view/browse.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflowdatasource/ext/view/edit.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflowfield/ext/view/browse.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflowhook/ext/view/create.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflowhook/ext/view/edit.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflowlabel/ext/view/browse.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflowlayout/ext/view/admin.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/workflowrelation/ext/view/admin.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/extension/lite/workflowrule/ext/view/browse.flow.html.hook.php';
$config->delete['17_2'][] = 'extension/lite/extension/lite/workflowrule/ext/view/view.flow.html.hook.php';

$config->upgrade->openModules = array('action', 'admin', 'api', 'automation', 'backup', 'block', 'branch', 'budget', 'bug', 'build', 'caselib', 'ci', 'client', 'common', 'company', 'compile', 'convert', 'cron', 'custom', 'datatable', 'dept', 'design', 'dev', 'doc', 'durationestimation', 'entry', 'execution', 'extension', 'file', 'git', 'gitlab', 'group', 'holiday', 'im', 'index', 'index.html', 'install', 'issue', 'jenkins', 'job', 'kanban', 'license', 'mail', 'message', 'misc', 'mr', 'my', 'personnel', 'pipeline', 'product', 'productplan', 'productset', 'program', 'programplan', 'project', 'projectbuild', 'projectrelease', 'projectstory', 'qa', 'release', 'repo', 'report', 'risk', 'score', 'search', 'setting', 'sonarqube', 'sso', 'stage', 'stakeholder', 'story', 'subject', 'svn', 'task', 'testcase', 'testreport', 'testsuite', 'testtask', 'todo', 'tree', 'tutorial', 'upgrade', 'user', 'webhook', 'weekly', 'workestimation', 'gitea', 'port');

$config->upgrade->unsetModules = array('design', 'program', 'programplan', 'projectbuild', 'projectrelease', 'stage', 'stakeholder', 'product', 'branch', 'productplan', 'release', 'build', 'qa', 'bug', 'testcase', 'testtask', 'testreport', 'testsuite', 'caselib', 'automation', 'repo', 'ci', 'compile', 'jenkins', 'job', 'svn', 'gitlab', 'sonarqube', 'mr', 'git', 'report', 'sqlbuilder', 'feedback', 'faq', 'attend', 'holiday', 'leave', 'makeup', 'overtime', 'lieu', 'ops', 'host', 'serverroom', 'account', 'domain', 'service', 'deploy', 'conference', 'traincourse', 'pssp', 'baseline', 'classify', 'cm', 'cmcl', 'auditcl', 'reviewcl', 'process', 'activity', 'zoutput', 'auditplan', 'nc', 'subject', 'weekly', 'workestimation', 'issue', 'durationestimation', 'risk', 'opportunity', 'trainplan', 'gapanalysis', 'researchplan', 'researchreport', 'meeting', 'meetingroom', 'budget', 'reviewissue', 'reviewsetting', 'review', 'milestone', 'measurement', 'measrecord', 'assetlib', 'setting', 'im', 'client', 'ldap', 'dev', 'api', 'gitea');

global $lang;
$config->upgrade->defaultActions = array();
$config->upgrade->defaultActions['type']          = 'single';
$config->upgrade->defaultActions['extensionType'] = 'none';
$config->upgrade->defaultActions['batchMode']     = 'different';
$config->upgrade->defaultActions['layout']        = 'normal';
$config->upgrade->defaultActions['show']          = 'direct';
$config->upgrade->defaultActions['order']         = 0;
$config->upgrade->defaultActions['buildin']       = 1;
$config->upgrade->defaultActions['role']          = 'buildin';
$config->upgrade->defaultActions['virtual']       = 0;
$config->upgrade->defaultActions['status']        = 'enable';
$config->upgrade->defaultActions['vision']        = 'rnd';

$config->upgrade->recoveryActions = new stdclass();
$config->upgrade->recoveryActions->feedback = new stdclass();
$config->upgrade->recoveryActions->feedback->review = array();
$config->upgrade->recoveryActions->feedback->review['action']   = 'review';
$config->upgrade->recoveryActions->feedback->review['module']   = 'feedback';
$config->upgrade->recoveryActions->feedback->review['name']     = $lang->upgrade->recoveryActions->review;
$config->upgrade->recoveryActions->feedback->review['method']   = 'operate';
$config->upgrade->recoveryActions->feedback->review['open']     = 'modal';
$config->upgrade->recoveryActions->feedback->review['position'] = 'browseandview';
$config->upgrade->recoveryActions->feedback->review['hasLite']  = true;

$config->upgrade->recoveryActions->task = new stdclass();
$config->upgrade->recoveryActions->task->review = array();
$config->upgrade->recoveryActions->task->review['action']   = 'cancel';
$config->upgrade->recoveryActions->task->review['module']   = 'task';
$config->upgrade->recoveryActions->task->review['name']     = $lang->upgrade->recoveryActions->cancel;
$config->upgrade->recoveryActions->task->review['method']   = 'operate';
$config->upgrade->recoveryActions->task->review['open']     = 'modal';
$config->upgrade->recoveryActions->task->review['position'] = 'view';
$config->upgrade->recoveryActions->task->review['hasLite']  = true;

$config->upgrade->recoveryActions->story = new stdclass();
$config->upgrade->recoveryActions->story->review = array();
$config->upgrade->recoveryActions->story->review['action']   = 'review';
$config->upgrade->recoveryActions->story->review['module']   = 'story';
$config->upgrade->recoveryActions->story->review['name']     = $lang->upgrade->recoveryActions->review;
$config->upgrade->recoveryActions->story->review['method']   = 'operate';
$config->upgrade->recoveryActions->story->review['open']     = 'normal';
$config->upgrade->recoveryActions->story->review['position'] = 'browseandview';

$config->upgrade->recoveryActions->testcase = new stdclass();
$config->upgrade->recoveryActions->testcase->review = array();
$config->upgrade->recoveryActions->testcase->review['action']   = 'review';
$config->upgrade->recoveryActions->testcase->review['module']   = 'testcase';
$config->upgrade->recoveryActions->testcase->review['name']     = $lang->upgrade->recoveryActions->review;
$config->upgrade->recoveryActions->testcase->review['method']   = 'operate';
$config->upgrade->recoveryActions->testcase->review['open']     = 'normal';
$config->upgrade->recoveryActions->testcase->review['position'] = 'browseandview';
